<template>
  <body class="pstudy">
    <div class="box">
      <i class="el-icon-back btn" @click="back()"></i>
      <div style="padding-top: 35px"><h1 class="title">职能学习</h1></div>
      <div class="two-cats-box"></div>
      <el-row type="flex" class="row-btn">
        <el-col
          ><el-button type="primary" @click="toCaseStudy()"
            >病例学习</el-button
          ></el-col
        >
        <el-col
          ><el-button type="primary" @click="toRolePlay()"
            >角色扮演</el-button
          ></el-col
        >
      </el-row>
    </div>
  </body>
</template>
<script>
export default {
  name: 'study',
  data() {
    return {}
  },
  methods: {
    toRolePlay() {
      this.$router.push({ path: '/role' })
    },
    toCaseStudy() {
      this.$router.push({ path: '/caseStudy' })
    },
    back() {
      this.$router.push({ path: '/home' })
    },
  },
}
</script>
<style scoped>
.pstudy {
  background-image: url('../assets/两只猫.png');
  background-size: 100% 100%;
  box-sizing: border-box;
}
.box {
  text-align: center;
  font-family: 宋体;
  height: 80%;
  width: 100%;
  box-sizing: border-box;
}
.btn {
  float: left;
  font-size: 35px;
}
.title {
  /* position: relative; */
  margin-top: 10px;
}
.two-cats-box {
  width: 100%;
  height: 70%;
}
.row-btn {
  margin-left: 9%;
  margin-right: 8%;
}
</style>
